package com.tenxcloud.zipkin.demo.controller;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MessageSend {

    @Autowired
    private AmqpTemplate rabbitTemplate;

    public void add(String string) {
        this.rabbitTemplate.convertAndSend("zipkin-demo1", string);
    }
}
